﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.Text;
using System.IO;
using System.Configuration;

namespace GetData
{
    public partial class CallGetMethodFeedback : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnTest_Click(object sender, EventArgs e)
        {
            HttpWebRequest httpWReq = (HttpWebRequest)WebRequest.Create(Convert.ToString(ConfigurationManager.AppSettings["PostUrl"])+"getFeedBack/" + txtfeedback.Text.Trim());
            httpWReq.Method = "GET";
            httpWReq.ContentType = "application/x-www-form-urlencoded";
            HttpWebResponse response = (HttpWebResponse)httpWReq.GetResponse();
            string responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
            lblResponse.Text = responseString;
           
        }
    }
}